﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net;
namespace TackMessenger
{
    static class Props
    {
        private static string username = "Alice";
        private static bool ConnectDialogStatus = false;
        private static IPAddress myIP;
        private static IPAddress friendIP;
        public static IPAddress localAddress;
        public static IPAddress destinationAddress;
        public static int port;
        public static bool connected;
        public static bool Client;

        public static void setMyIpAddress(string address) 
        {
            myIP = IPAddress.Parse(address);
        }

        public static void setFriendIpAddress(string address)
        {
            friendIP = IPAddress.Parse(address);

        }

        public static IPAddress getMyIp()
        {
            return myIP;
        }

        public static IPAddress getFriendIP()
        {
            return friendIP;
        }


        public static void setConnectDialogStatus(bool status)
        {
            ConnectDialogStatus = status;
        }

        public static bool getConnectDialogStatus()
        {
            return ConnectDialogStatus;
        }

        public static void setUsername(string name)
        {
            username = name;
        }

        public static string getUsername()
        {
            return username;
        }


    }
}
